package com.sn.author.dao;

import com.sn.author.domain.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author xiaom
 * @Date 2020/9/15 20:48
 * @Version 1.0.0
 * @Description <>
 **/
public interface BaseMapper<T,V> {

    int deleteByPrimaryKey(V id);

    int insert(T record);

    int insertOrUpdate(T record);

    int insertOrUpdateSelective(T record);

    int insertSelective(T record);

    T selectByPrimaryKey(V id);

    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKey(T record);

    int updateBatch(List<T> list);

    int updateBatchSelective(List<T> list);

    int batchInsert(@Param("list") List<T> list);

    List<T> selectAll();
}
